package com.dreammakerteam.frameworkdemo.base.service;

import com.dreammakerteam.frameworkdemo.base.service.DMapper;
import com.dreammakerteam.frameworkdemo.base.domain.DUserDo;
import com.dreammakerteam.frameworkdemo.base.mapper.DUserMapper;

/**
 * 用户服务
 * @author xy
 * @version 0.1
 */
public interface DUserService extends DBaseService, DMapper<DUserMapper> {

    /**
     * 通过用户名以及密码获取用户
     * @param username 用户名
     * @param Password 密码
     * @return 用户，不存在则返回null
     */
    DUserDo getByUsernameAndPassword(String username, String password);


    String enCodingPassword(String password);


}
